package com.hair.logy.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hair.logy.core.model.HairCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HairCardMapper extends BaseMapper<HairCard> {
    List<HairCard> listHairCardByCardNoAndPageSize(@Param("start") Integer start,@Param("end") Integer end,@Param("cardNoStr")  String cardNoStr);

    void batchInsert(List<HairCard> hairCards);

    HairCard findHairCardByCardNo(@Param("cardNo") String cardNo);

    Integer countHairCardByCardNoAndPageSize(@Param("cardNoStr")  String cardNoStr);

    HairCard findNextHairCard();
}
